<?php

declare(strict_types=1);

namespace App\Request\Pay;


use App\Request\BaseCommonRequest;

class PayProductListRequest extends BaseCommonRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'switch_from' => 'required|integer|in:0,1,2',// 0:gold, 1:vip 2:快捷支付
            'local_code' => 'required|integer|in:0,1',// 0:大陆, 1:海外
            'version_code' => 'required|integer',
            'from' => 'required|integer|in:1,2',
            'channel' => 'required|string',
            'package' => 'required|string',
            'language' => 'required|string|in:zh-cn,zh-hk,en',
        ];
    }
}
